package a.i;

import javax.swing.*;
import java.io.*;

public class n
{
  private static String a = null;
  private static final boolean c = false;
  public static final int d;
  private static boolean e;
  public static boolean f;
  
  public static void a(int paramInt, String paramString)
  {
    if (d >= paramInt) {
      System.out.println(paramString);
    }
  }
  
  public static void a(Object paramObject)
  {
    System.err.println(paramObject);
    if ((p.b) || ((paramObject instanceof Exception))) {
      ((Exception)paramObject).printStackTrace(System.err);
    }
  }
  
  public static boolean a()
  {
    return e;
  }
  
  public static void a(boolean paramBoolean)
  {
    e = paramBoolean;
  }
  
  public static void b(Object paramObject)
  {
    System.err.print(paramObject);
  }
  
  public static void a(Object paramObject1, Object paramObject2)
  {
    if (c(paramObject1)) {
      System.err.println(paramObject1.getClass().getName() + " : " + paramObject2);
    }
  }
  
  public static void a(Object paramObject1, int paramInt, Object paramObject2)
  {
    if ((p.b) || ((d >= paramInt) && (c(paramObject1)))) {
      System.err.println(paramObject1.getClass().getName() + " : " + paramObject2);
    }
  }
  
  public static void b(Object paramObject1, Object paramObject2)
  {
    if (c(paramObject1)) {
      System.err.print(paramObject1.getClass().getName() + " : " + paramObject2);
    }
  }
  
  public static boolean c(Object paramObject)
  {
    String str = paramObject.getClass().getName();
    return a(str);
  }
  
  public static boolean a(String paramString)
  {
    boolean bool2 = p.b;
    boolean bool1 = p.a;
    String str1 = a;
    if (str1 == null) {
      return false;
    }
    int i = -1;
    int j = str1.indexOf(':', i + 1);
    String str2;
    do
    {
      if (j <= i) {
        break;
      }
      str2 = str1.substring(i + 1, j);
      if (bool2) {
        break label112;
      }
      if (bool1) {
        break label109;
      }
      if (str2.length() > 0)
      {
        if (bool2) {
          continue;
        }
        if (paramString.startsWith(str2)) {
          return true;
        }
      }
      i = j;
      j = str1.indexOf(':', i + 1);
    } while (!bool1);
    j = str1.length();
    label109:
    if ((!bool2) && (j > i + 1))
    {
      label112:
      str2 = str1.substring(i + 1, j);
      if (bool2) {
        break label155;
      }
      if (str2.length() > 0)
      {
        if (bool2) {
          break label155;
        }
        if (paramString.startsWith(str2)) {
          return true;
        }
      }
    }
    label155:
    return false;
  }
  
  public static void c(Object paramObject1, Object paramObject2)
  {
    System.err.println(paramObject1.getClass().getName() + " : " + paramObject2);
    throw new RuntimeException(paramObject1.getClass().getName() + " : " + paramObject2);
  }
  
  public static void d(Object paramObject)
  {
    System.err.println("FATAL: " + paramObject);
    throw new RuntimeException("FATAL: " + paramObject);
  }
  
  public static void b(int paramInt, String paramString)
  {
    if (d < paramInt) {
      return;
    }
    System.out.print(paramString);
  }
  
  public static void a(Exception paramException)
  {
    paramException.printStackTrace(System.err);
  }
  
  public static void b()
  {
    a(new Exception());
  }
  
  public static void e(Object paramObject)
  {
    boolean bool = p.b;
    if (!bool)
    {
      if ((paramObject instanceof Throwable)) {
        a((Throwable)paramObject);
      }
    }
    else if (!p.a) {
      return;
    }
    CharArrayWriter localCharArrayWriter = new CharArrayWriter();
    PrintWriter localPrintWriter = new PrintWriter(localCharArrayWriter);
    localPrintWriter.print(paramObject);
    String str = localCharArrayWriter.toString();
    if (!bool)
    {
      if ((SwingUtilities.isEventDispatchThread()) || (e)) {
        xb.a(null, "Exception", "An Error has Occured:", str);
      }
    }
    else {
      return;
    }
    System.err.println("An Error has Occured");
    System.err.println(str);
  }
  
  public static void b(Exception paramException)
  {
    if ((p.b) || ((SwingUtilities.isEventDispatchThread()) || (e)))
    {
      xb.a(null, "Exception", paramException);
      return;
    }
    paramException.printStackTrace(System.err);
  }
  
  public static void a(Throwable paramThrowable)
  {
    if ((p.b) || ((SwingUtilities.isEventDispatchThread()) || (e)))
    {
      xb.a(null, "Exception", paramThrowable);
      return;
    }
    paramThrowable.printStackTrace(System.err);
  }
  
  static
  {
    try
    {
      while (d.a() != 0L)
      {
        if (d.a() < 0L)
        {
          System.err.println("yFiles for Java Evaluation Version");
          break;
        }
        long l = System.currentTimeMillis() / 1000L;
        if (d.a() - l < 0L)
        {
          System.err.println("The evaluation time of yFiles for Java has expired\n");
          System.exit(1);
        }
        else if (d.c() - l > 0L)
        {
          System.err.println("The evaluation time of yFiles for Java has expired\n");
          System.exit(1);
        }
        else
        {
          System.err.println("yFiles for Java: Remaining Evaluation Period: " + (d.a() - l) / 86400L + " days");
          break;
        }
      }
    }
    catch (RuntimeException localRuntimeException)
    {
      System.exit(1);
    }
    int i = 0;
    try
    {
      if (System.getProperty("y.debug.level") != null) {
        i = Integer.parseInt(System.getProperty("y.debug.level"));
      }
      a = System.getProperty("y.debug");
      String str1 = System.getProperty("y.debug.file");
      if (str1 != null)
      {
        FileInputStream localFileInputStream = new FileInputStream(new File(str1));
        BufferedReader localBufferedReader = new BufferedReader(new InputStreamReader(localFileInputStream));
        String str2;
        while ((str2 = localBufferedReader.readLine()) != null) {
          if (a == null) {
            a = str2;
          } else {
            a = a + ":" + str2;
          }
        }
        localBufferedReader.close();
        localFileInputStream.close();
      }
    }
    catch (Exception localException) {}finally
    {
      d = i;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.i.n

 * JD-Core Version:    0.7.0.1

 */